package cn.lambda;

/**
 * @author: lizemin
 * @version: 1.0
 */
public class Demo2 {
    //这是一个main方法,是程序的入口
    public static void main(String[] args) {
//        test(() -> "lizemin");
        test(() -> {
            String a = "lizemin";
            String b = "----is cool-----";
            String concat = a.concat(b);
            return concat;
        });

    }
    private static void test(Swing a){
        String swing = a.swing();
        System.out.println("i can swim! -----"+swing);

    }
}
